package com.btkjgc.models;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

// default package

/**
 * Battery entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "battery_t")
@DynamicUpdate(true)
@DynamicInsert(true)
public class Battery implements java.io.Serializable {


    // Fields    

     private Integer id;
     private String batteryNo;
     private Integer exelecRecordid;
     private String undown;
     private String soc;
     private String voltage;
     private String upground;
     private String downground;
     private String minvoltage;
     private String maxvoltage;
     private String mintemperature;
     private String maxtemperature;


    // Constructors

    /** default constructor */
    public Battery() {
    }

	/** minimal constructor */
    public Battery(Integer id) {
        this.id = id;
    }
    
    /** full constructor */
    public Battery(Integer id, String batteryNo, Integer exelecRecordid, String undown, String soc, String voltage, String upground, String downground, String minvoltage, String maxvoltage, String mintemperature, String maxtemperature) {
        this.id = id;
        this.batteryNo = batteryNo;
        this.exelecRecordid = exelecRecordid;
        this.undown = undown;
        this.soc = soc;
        this.voltage = voltage;
        this.upground = upground;
        this.downground = downground;
        this.minvoltage = minvoltage;
        this.maxvoltage = maxvoltage;
        this.mintemperature = mintemperature;
        this.maxtemperature = maxtemperature;
    }

   
    // Property accessors
	@Id  
	@Column(name="id",unique=true)  
    @GeneratedValue(strategy=GenerationType.AUTO)  
    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }

    public String getBatteryNo() {
        return this.batteryNo;
    }
    
    public void setBatteryNo(String batteryNo) {
        this.batteryNo = batteryNo;
    }

    public Integer getExelecRecordid() {
        return this.exelecRecordid;
    }
    
    public void setExelecRecordid(Integer exelecRecordid) {
        this.exelecRecordid = exelecRecordid;
    }

    public String getUndown() {
        return this.undown;
    }
    
    public void setUndown(String undown) {
        this.undown = undown;
    }

    public String getSoc() {
        return this.soc;
    }
    
    public void setSoc(String soc) {
        this.soc = soc;
    }

    public String getVoltage() {
        return this.voltage;
    }
    
    public void setVoltage(String voltage) {
        this.voltage = voltage;
    }

    public String getUpground() {
        return this.upground;
    }
    
    public void setUpground(String upground) {
        this.upground = upground;
    }

    public String getDownground() {
        return this.downground;
    }
    
    public void setDownground(String downground) {
        this.downground = downground;
    }

    public String getMinvoltage() {
        return this.minvoltage;
    }
    
    public void setMinvoltage(String minvoltage) {
        this.minvoltage = minvoltage;
    }

    public String getMaxvoltage() {
        return this.maxvoltage;
    }
    
    public void setMaxvoltage(String maxvoltage) {
        this.maxvoltage = maxvoltage;
    }

    public String getMintemperature() {
        return this.mintemperature;
    }
    
    public void setMintemperature(String mintemperature) {
        this.mintemperature = mintemperature;
    }

    public String getMaxtemperature() {
        return this.maxtemperature;
    }
    
    public void setMaxtemperature(String maxtemperature) {
        this.maxtemperature = maxtemperature;
    }
   

}